package com.olddriver.crm.service.impl;

import com.olddriver.crm.domain.Menu;
import com.olddriver.crm.mapper.MenuMapper;
import com.olddriver.crm.service.IMenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MenuServiceImpl implements IMenuService{

    @Resource
    private MenuMapper menuMapper;


    @Override
    public List<Menu> getMenu(Long id) {
        return menuMapper.getChildrenMenu(id);
    }

    @Override
    public List<Menu> getSubMenu(String keyword){
        return menuMapper.getSubMenu(keyword);
    }
}
